import request from '@/utils/request';
// 统计活动信息
export function statbaseList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/stat-base',
        method: 'get',
        params: data
    });
}
// 统计基本信息
export function statinfoList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/stat-info',
        method: 'post',
        data
    });
}
// 统计趋势图
export function statchartList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/stat-chart',
        method: 'post',
        data
    });
}
// 统计详细数据
export function statdetailList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/stat-detail',
        method: 'post',
        data
    });
}
// 统计详细数据导出
export function statexportList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/stat-export',
        method: 'post',
        data
    });
}
//统计-详细数据 查看收集表
export function viewcollectList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/view-collect',
        method: 'post',
        data
    });
}
//收集表列表复制
export function copyList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/copy',
        method: 'get',
        params: data
    });
}
//收集表列表下载
export function downloadList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/batch-download',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
//收集表列表开始
export function startList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/batch-start',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
//收集表列表结束
export function closeList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/batch-close',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
//收集表列表删除
export function delList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/batch-del',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
//收集表列表
export function funAllList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/list',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
// 新建收集表
export function toCreateCollectionTable(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/put',
        method: 'post',
        data
    });
}
// 收集表-通用图片上传
export function uploadCommonImg(data: any) {
    return request({
        url: '/scrm-api/console/content/advanced/collect/pic-upload',
        method: 'post',
        data
    });
}
// 收集表-展示收集表
export function showCollectTable(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/show',
        method: 'post',
        data
    });
}
// 收集表-浏览详情
export function showCollectVisitDetail(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/visit-detail',
        method: 'post',
        data
    });
}
// 收集表-导出浏览详情
export function exportCollectVisitDetail(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/export-visit',
        method: 'post',
        data
    });
}
// 收集表导出
export function exportDetail(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/export-detail',
        method: 'post',
        data
    });
}

// 收集表推广
export function promoteCollect(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/share',
        method: 'post',
        data
    });
}

// 收集表批量操作 获取操作数
export function collectChecknum(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/check-num',
        method: 'post',
        data
    });
}

// 转移分组
export function collectTransferGroup(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/transfer-group',
        method: 'post',
        data
    });
}

// 填写明细列表头
export function collectDetailCols(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/submit-detail/title',
        method: 'post',
        data
    });
}

// 趋势图导出接口
export function collectStatisticsExport(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/stat-chart-export',
        method: 'post',
        data
    });
}
// 填写明细
export function collectSubmitDetail(data: any) {
    return request({
        url: '/scrm-api/console/media/content/collect/submit-detail',
        method: 'post',
        data
    });
}
// 填写明细导出
export function collectSubmitDetailExport(data: any) {
    return request({
        url: 'scrm-api/console/media/content/collect/submit-detail-export',
        method: 'post',
        data
    });
}
